//
//  ExFontDetailViewController.m
//  OC-Example
//
//  Created by apang on 2018/7/31.
//  Copyright © 2018年 apang.men All rights reserved.
//

#import "ExFontDetailViewController.h"

@interface ExFontDetailViewController ()

@end

@implementation ExFontDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"字体测试";
    [self.view setBackgroundColor:[UIColor whiteColor]];
    //LcdD
    UILabel * label = [[UILabel alloc] init];
    label.text = @"1998-08-31 21:15:41";
    [label setFont:[UIFont fontWithName:@"LcdD" size:40]];
    [self.view addSubview:label];
    [label setTranslatesAutoresizingMaskIntoConstraints:NO];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-(0)-[label]-(0)-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label)]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-(0)-[label]" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label)]];
    //UnidreamLED
    UILabel * label1 = [[UILabel alloc] init];
    label1.text = @"1998-08-31 21:15:41";
    [label1 setFont:[UIFont fontWithName:@"UnidreamLED" size:40]];
    [self.view addSubview:label1];
    [label1 setTranslatesAutoresizingMaskIntoConstraints:NO];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-(0)-[label1]-(0)-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label1)]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[label]-(10)-[label1]" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label,label1)]];
    //DigifaceWide
    UILabel * label2 = [[UILabel alloc] init];
    label2.text = @"1998-08-31 21:15:41";
    [label2 setFont:[UIFont fontWithName:@"DigifaceWide" size:40]];
    [self.view addSubview:label2];
    [label2 setTranslatesAutoresizingMaskIntoConstraints:NO];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-(0)-[label2]-(0)-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label2)]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[label1]-(10)-[label2]" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label2,label1)]];
    //led16sgmnt2
    UILabel * label3 = [[UILabel alloc] init];
    label3.text = @"1998-08-31 21:15:41";
    [label3 setFont:[UIFont fontWithName:@"led16sgmnt2" size:40]];
    [self.view addSubview:label3];
    [label3 setTranslatesAutoresizingMaskIntoConstraints:NO];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-(0)-[label3]-(0)-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label3)]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[label2]-(10)-[label3]" options:0 metrics:nil views:NSDictionaryOfVariableBindings(label2,label3)]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
